package com.cpit.qualitycontrol.service;

import com.cpit.platform.common.entity.TableDataQueryCondition;
import com.cpit.platform.common.entity.TableJsonData;
import com.cpit.qualitycontrol.entity.WorkOrderType;

import java.util.List;

/**
 * Created by Hull on 2017/9/28.
 */
public interface WorkOrderTypeService {
    WorkOrderType findById(Long id);
    List<WorkOrderType> findAll();
    List<WorkOrderType> findByCondition(int page,
                                     int size,
                                     String order,
                                     String orderBy,
                                     String pattern);
    WorkOrderType create(WorkOrderType workOrderType) throws Exception;
    WorkOrderType modify(WorkOrderType workOrderType) throws Exception;
    void delete(WorkOrderType workOrderType) throws Exception;
    void delete(Long id) throws Exception;
    @SuppressWarnings("rawtypes")
    TableJsonData findByConditionJqg(TableDataQueryCondition cond);
    WorkOrderType findByName(String name);
}
